package com.software.loginregister.entity;

import java.util.Date;

public class Post {
    private Long postId;
    private String postTitle;
    private String avatar;
    private String nickName;
    private String userId;
    private String postText;
    private String postImage;
    private int likeCount;
    private int commentCount;
    private Date createTime;

    public Post(Long postId, String postTitle, String avatar, String nickName, String userId, String postText, String postImage, int likeCount, int commentCount, Date createTime) {
        this.postId = postId;
        this.postTitle = postTitle;
        this.avatar = avatar;
        this.nickName = nickName;
        this.userId = userId;
        this.postText = postText;
        this.postImage = postImage;
        this.likeCount = likeCount;
        this.commentCount = commentCount;
        this.createTime = createTime;
    }

    public Post(String nickName, String avatar, String postText, Date createTime, int likeCount, int commentCount) {
        this.nickName = nickName;
        this.avatar = avatar;
        this.postText = postText;
        this.createTime = createTime;
        this.likeCount = likeCount;
        this.commentCount = commentCount;
    }
    public Post () {}
    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public String getPostTitle() {
        return postTitle;
    }

    public void setPostTitle(String postTitle) {
        this.postTitle = postTitle;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPostText() {
        return postText;
    }

    public void setPostText(String postText) {
        this.postText = postText;
    }

    public String getPostImage() {
        return postImage;
    }

    public void setPostImage(String postImage) {
        this.postImage = postImage;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
